package org.jks.service;

import org.jks.model.WorkDevice;
import org.springframework.stereotype.Service;

@Service
public class WorkDeviceService extends EntityService<WorkDevice>{
	
	public WorkDeviceService(){
		MODEL_NAME = WorkDevice.class.getSimpleName();
		CLASS_NAME = WorkDevice.class;
	}
	
	public void deleteByWork(long workId){
		String hql = "delete from " + MODEL_NAME + " where Work="+workId;
		super.delete(hql);
	}
}
